package com.starlink.model.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author zhanghong
 */
@Data
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@TableName("street")
public class StreetDO implements Serializable {
    private static final long serialVersionUID = 1L;
    /** 街道编码 */
    @TableId(value = "code", type = IdType.ASSIGN_ID)
    private String code;
    /** 街道名称 */
    @TableField("name")
    private String name;
    /** 区域编码 */
    @TableField("area_code")
    private String areaCode;
    /** 省份编码 */
    @TableField("province_code")
    private String provinceCode;
    /** 城市编码 */
    @TableField("city_code")
    private String cityCode;
}
